-- GENERATED SPELL FOR [Dragonmaw Drake-Rider] --


function spell0_21719(pUnit, Event) --@Serpent Sting,n/a--
pUnit:FullCastSpellOnTarget(31975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21719', 15000, 1)
end

function spell1_21719(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21719', 595, 1)
end

function Sorts_21719(pUnit, Event)
local choix_sorts_21719 = math.random(0, 1)
if choix_sorts_21719 == 0 then
pUnit:RegisterEvent('spell0_21719', 1, 1)
end
if choix_sorts_21719 == 1 then
pUnit:RegisterEvent('spell1_21719', 1, 1)
end
end

function mob21719_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21719', math.random(1500, 3000), 1)
end

function mob21719_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21719_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21719_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21719, 1, 'mob21719_Action')
RegisterUnitEvent(21719, 2, 'mob21719_Leave')
RegisterUnitEvent(21719, 3, 'mob21719_Kill')
RegisterUnitEvent(21719, 4, 'mob21719_Die')
